package com.ai.flight.ai.tools;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Component;

/**
 * @CreateTime: 2025-06-03
 * @Description: 获取某地天气的工具
 */

@Component
public class WeatherTools {

    @Tool(description = "获取某地的天气信息")
    public String getWeather(@ToolParam(description = "地区") String location) {
        return "下雨";
    }
}
